package com.itheima.springbootwebtlias.mapper;


import com.itheima.springbootwebtlias.pojo.OperateLog;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Service;

import java.util.List;

@Mapper
public interface LogMapper {

    @Select("select log.*,emp.name as operateEmpName from operate_log log, emp where emp.id = log.operate_emp_id")
    List<OperateLog> selectByCondition();
}
